package me.algo.dt;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * @author guozheng
 * @date 2024/5/13
 */
public class D1 {
    public static int dayOfYear(String date) {
        LocalDate d = LocalDate.parse(date, DateTimeFormatter.ISO_DATE);
        return d.getDayOfYear();
    }


    public static void main(String[] args) {
        System.out.println(dayOfYear("2019-02-10"));
    }

}
